import { translateTitle } from '@/utils/i18n'
const TestTimerLog = {
  TestTimerLog: {
    search: {
      form: {
        method: 'dams.mongodb.timer.base.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'TIMER_KEY',
            label: translateTitle('Dams.ApplicationInterface.定时器名称'),
          },
          {
            type: 'select',
            name: 'STATE',
            label: translateTitle('Dams.ApplicationInterface.状态'),
            labelHidden: false,
            options: [
              {
                LABEL: translateTitle('Dams.ApplicationInterface.成功'),
                CODE: 'ok',
              },
              {
                LABEL: translateTitle('Dams.ApplicationInterface.失败'),
                CODE: 'fail',
              },
            ],
          },
          {
            type: 'datePicker',
            name: 'DATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
            labelHidden: false,
            disabledDate: true,
            defaultTime: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
          },
          {
            type: 'input',
            name: 'TIMER_KEY',
            label: translateTitle('Dams.ApplicationInterface.定时器名称'),
          },
          {
            type: 'input',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
          },
          {
            type: 'input',
            name: 'CREATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
          },
          {
            type: 'input',
            name: 'STATE',
            label: translateTitle('Dams.ApplicationInterface.状态'),
          },
          {
            type: 'input',
            name: 'ERROR_CODE',
            label: translateTitle('Dams.ApplicationInterface.错误代码'),
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    msgMethod: 'dams.mongodb.timer.msg.query',
  },
}
export default TestTimerLog
